package com.kantboot.business.talent.web.controller;

import com.kantboot.business.talent.service.IBusTalentUserAccountControllerInTalentService;
import com.kantboot.global.rest.result.CommonSuccessStateCodeAndMsg;
import com.kantboot.user.account.domain.entity.UserAccount;
import com.kantboot.util.common.result.RestResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/business-talent-web/userAccount")
public class BusTalentUserAccountController {

    @Resource
    private IBusTalentUserAccountControllerInTalentService service;

    @RequestMapping(value = "/saveSelf")
    public RestResult<Object> saveSelf(@RequestBody UserAccount entity){
        UserAccount save = service.saveSelf(entity);
        return RestResult.success(save, CommonSuccessStateCodeAndMsg.GET_SUCCESS);
    }

}
